package com.kc.business.service.impl;

import com.kc.business.domain.BizShipping;
import com.kc.business.mapper.BizShippingMapper;
import com.kc.business.service.IBizShippingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/10/15
 */
@Service
public class BizShippingServiceImpl implements IBizShippingService {
    @Resource
    BizShippingMapper shippingMapper;
    /**
     * 查询物流列表
     *
     * @param bizShipping
     * @return
     */
    @Override
    public List<BizShipping> getList(BizShipping bizShipping) {
        return shippingMapper.select(bizShipping);
    }

    /**
     * 新增物流
     *
     * @param bizShipping
     * @return
     */
    @Override
    public int add(BizShipping bizShipping) {
        return shippingMapper.insertSelective(bizShipping);
    }

    /**
     * 修改物流
     *
     * @param bizShipping
     * @return
     */
    @Override
    public int edit(BizShipping bizShipping) {
        return shippingMapper.updateByPrimaryKeySelective(bizShipping);
    }
}
